import fetch from '@/utils/fetch';

export function login(userName,password) {

  const data = {
    userName: userName,
    password: password
  };
  return fetch({
    url: '/api/auth/jwt/token',
    method: 'POST',
    data
  });
}
